]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
messageTray: Don't allow opening while entering/leaving the overview
authorJasper St. Pierre <jstpierre@mecheye.net>
Sun, 17 Feb 2013 19:26:04 +0000 (14:26 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Mon, 18 Feb 2013 19:42:44 +0000 (14:42 -0500)
The complex overview transition code means that there's no easy
way to handle with this right now. Blocking the message tray
while the overview is animating seems like the correct thing to do.

https://bugzilla.gnome.org/show_bug.cgi?id=694038

js/ui/messageTray.js

index 16064ebdee8a0a5be2c3bf6175230dc630d3fab2..eb63266b1cbe8866122c870191f383e649d89c05 100644 (file)
@@ -2031,18 +2031,25 @@ const MessageTray = new Lang.Class({
     },
 
     openTray: function() {
+        if (Main.overview.animationInProgress)
+            return;
+
         this._traySummoned = true;
         this._updateState();
     },
 
     toggle: function() {
+        if (Main.overview.animationInProgress)
+            return false;
+
         this._traySummoned = !this._traySummoned;
         this._updateState();
+        return true;
     },
 
     toggleAndNavigate: function() {
-        this.toggle();
-        this._summary.navigate_focus(null, Gtk.DirectionType.TAB_FORWARD, false);
+        if (this.toggle())
+            this._summary.navigate_focus(null, Gtk.DirectionType.TAB_FORWARD, false);
     },
 
     hide: function() {